﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AccordionPostbacks.aspx.cs" Inherits="AccordionPostbacks" %>
<%@ Register Assembly="jQueryDotNetLib" Namespace="jQueryDotNetLib.Controls" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="DemoTitleContentPlaceHolder" Runat="Server">
Accordion with an ASP.NET (Postback example)
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="DemoContentPlaceHolder" Runat="Server">

    <cc1:AccordionControl ID="JQueryPanel1" runat="server" Accordion="true">
        <cc1:AccordionPanel ID="Accordion1" runat="server" Text="Accordion Panel 1">
            This is Accordion panel 1
            <asp:Button runat="server" ID="Panel1Button1" Text="Click me!" OnClick="Panel1Button1_Click" />
            <asp:Label runat="server" ID="Panel1Label1" Text=""></asp:Label>
        </cc1:AccordionPanel>
        <cc1:AccordionPanel ID="Accordion2" runat="server" Text="Accordion Panel 2">
            This is Accordion panel 2
        </cc1:AccordionPanel>
        <cc1:AccordionPanel ID="Accordion3" runat="server" Text="Accordion Panel 3">
            This is Accordion panel 3
        </cc1:AccordionPanel>
        <cc1:AccordionPanel ID="Accordion4" runat="server" Text="Accordion Panel 4">
            This is Accordion panel 4
        </cc1:AccordionPanel>
    </cc1:AccordionControl>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SourceContentPlaceHolder" Runat="Server">
<pre>
    &lt;cc1:AccordionControl ID="JQueryPanel1" runat="server" Accordion="true"&gt;
        &lt;cc1:AccordionPanel ID="Accordion1" runat="server" Text="Accordion Panel 1"&gt;
            This is Accordion panel 1
            &lt;asp:Button runat="server" ID="Panel1Button1" Text="Click me!" OnClick="Panel1Button1_Click" /&gt;
            &lt;asp:Label runat="server" ID="Panel1Label1" Text=""&gt;&lt;/asp:Label&gt;
        &lt;/cc1:AccordionPanel&gt;
        &lt;cc1:AccordionPanel ID="Accordion2" runat="server" Text="Accordion Panel 2"&gt;
            This is Accordion panel 2
        &lt;/cc1:AccordionPanel&gt;
        &lt;cc1:AccordionPanel ID="Accordion3" runat="server" Text="Accordion Panel 3"&gt;
            This is Accordion panel 3
        &lt;/cc1:AccordionPanel&gt;
        &lt;cc1:AccordionPanel ID="Accordion4" runat="server" Text="Accordion Panel 4"&gt;
            This is Accordion panel 4
        &lt;/cc1:AccordionPanel&gt;
    &lt;/cc1:AccordionControl&gt;
    </pre>
</asp:Content>

